package com.yyt.transactional_demo.controller;

import com.yyt.transactional_demo.service.DemoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author yeyangtao created at 10:15 2020/10/17
 */
@RestController
@RequestMapping("user")
public class UserController {
    @Resource
    private DemoService service;

    @GetMapping("test")
    public void demo(){
        service.demo();
    }
}
